<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Dialog</title>
  <link rel="stylesheet" href="1.css">
</head>

<body>
  <div class="container">
    <h2>Dialog</h2>
    <button class="button opn-dialog">打开弹窗</button>
    <div class="dialog">
      <div class="main">
        <div class="header">提示
          <button class="close"></button>
        </div>
        <div class="content">
          <p>Dialog</p>
        </div>
        <div class="footer">
          <button class="button btn-cancel">取消</button>
          <button class="button btn-ok primary">确定</button>
        </div>
      </div>
    </div>

  </div>
</body>
<script src="1.js"></script>

</html>